package Loganseabolt;

import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.IArmorTextureProvider;

public class Wars_AR extends ItemArmor implements IArmorTextureProvider{

    private Object iconIndex;

    public Wars_AR(int par1, EnumArmorMaterial par2EnumArmorMaterial,
                    int par3, int par4) {
            super(par1, par2EnumArmorMaterial, par3, par4);
            // TODO Auto-generated constructor stub
    }

    /*public String getTextureFile()
    {
            return "/loganSeaboltModBase/textures/items.png";
    }*/
    
    public String getArmorTextureFile(ItemStack itemstack)
    {
            if(itemstack.itemID == LoganSeaboltModBase.WarH.itemID || itemstack.itemID == LoganSeaboltModBase.WarC.itemID || itemstack.itemID == LoganSeaboltModBase.WarB.itemID)
            {
                    return "/mods/loganSeaboltModBase/textures/items/war_Armor.fw.png";
            }
            if(itemstack.itemID == LoganSeaboltModBase.WarL.itemID)
            {
                    return "/mods/loganSeaboltModBase/textures/items/war_Armor2.fw.png";
            }
            
            else return null;
            //return "/loganSeaboltModBase/textures/items";
    }
    public void registerIcons(IconRegister iconReg)
    {
    	if(itemID == LoganSeaboltModBase.WarB.itemID){
            itemIcon = iconReg.registerIcon("LoganseaboltModBase:WarB.fw");
    }
    	else if(itemID == LoganSeaboltModBase.WarH.itemID){
            itemIcon = iconReg.registerIcon("LoganseaboltModBase:WarHelm.fw");
    }
    	else if(itemID == LoganSeaboltModBase.WarL.itemID){
            itemIcon = iconReg.registerIcon("LoganseaboltModBase:HorseL.fw");
    }
    	else if(itemID == LoganSeaboltModBase.WarC.itemID){
            itemIcon = iconReg.registerIcon("LoganseaboltModBase:HorseChest.fw");
    }
   }
}